home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Include / TextProxy.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.6 KB  |  62 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                            TextProxy.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                        Anthone Burbidge
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef _TEXTPROXY_
  14. #define _TEXTPROXY_
  15.  
  16. // ----- Framework Includes -----
  17.  
  18. #ifndef FWPROXY_H
  19. #include "FWProxy.h"
  20. #endif
  21.  
  22. //==============================================================================
  23. // Forward class declarations
  24. //==============================================================================
  25.  
  26. class XMPPart;
  27. class XMPFrame;
  28. class XMPTransform;
  29. class FW_CEmbeddingPart;
  30. class CTextPart;
  31.  
  32.  
  33. //==============================================================================
  34. // CLASS CTextProxyRun
  35. //==============================================================================
  36.  
  37. class CTextProxyRun : public FW_CProxyRun
  38. {
  39. // ----- Construct/destruct/initialize
  40. public:
  41.     CTextProxyRun();
  42.     void InitTextProxyRun(FW_CEmbeddingPart* embeddingPart);
  43.     virtual ~CTextProxyRun();
  44.  
  45. // ----- from FW_CProxyRun
  46. public:
  47.     virtual void UsedShapeChanged(XMPFrame* xmpFrame);
  48.     virtual void GetFacetExternalTransform(XMPFrame* xmpFrame,
  49.                                            XMPTransform* facetTransform);
  50.     virtual void SetSelectState(FW_Boolean state);
  51.  
  52. // ----- New methods and fields
  53. public:
  54.     void        SetBoundingBox(const FW_SPlatformRect& rect);
  55.     void        GetBoundingBox(FW_SPlatformRect& rect) const;
  56.     
  57. private:
  58.     FW_SPlatformRect        fBoundingBox;
  59. };
  60.  
  61. #endif
  62.